﻿function pageLoad() {
	$("input[id $= btNewAccount]").click(function () {
		openUserDetailsForm();
	});
}

function openUserDetailsForm() {
	$.fn.colorbox({
		iframe: true,
		href: "/Forms/AccountDetails.aspx",
		width: "40%",
		height: "90%",
		transition: "elastic",
		opacity: "0.60",
		onOpen: function () {
		},
		onLoad: function () {
			$('#cboxClose').remove();
		},
		onClosed: function () {
			var mypage = Sys.WebForms.PageRequestManager.getInstance();
			mypage._doPostBack('AccountsManagementUpdatePanel', '');
		}
	});
}



